-
Notifications
You must be signed in to change notification settings - Fork 745
/
ConsoleCommandAttribute.cs
31 lines (27 loc) · 1.35 KB
/
ConsoleCommandAttribute.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Prompt
{
using System;
[AttributeUsage(AttributeTargets.Class)]
public class ConsoleCommandAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="ConsoleCommandAttribute"/> class.</summary>
/// <param name="name"></param>
/// <param name="categoryKey"></param>
/// <param name="descriptionKey"></param>
public ConsoleCommandAttribute(string name, string categoryKey, string descriptionKey)
{
this.Name = name;
this.CategoryKey = categoryKey;
this.DescriptionKey = descriptionKey;
}
/// <summary>Gets or sets name used in the UI for the command. By convention we encourage you to use "verb-noun" as with Powershell (e.g. "add-module").</summary>
public string Name { get; set; }
/// <summary>Gets or sets resource key for the category of the command.</summary>
public string CategoryKey { get; set; }
/// <summary>Gets or sets resource key for the description of the command.</summary>
public string DescriptionKey { get; set; }
}
}